package com.itheima.service;

import com.itheima.dtos.ArticleDto;
import com.itheima.dtos.ArticleHomeDto;
import com.itheima.pojos.ApArticle;
import com.itheima.vos.ArticleVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author wangjiexin
 */
@Transactional(rollbackFor = RuntimeException.class)
public interface ArticleService {
    List<ArticleVO> load(ArticleHomeDto dto);

    List<ArticleVO> loadmore(ArticleHomeDto dto);

    List<ArticleVO> loadnew(ArticleHomeDto dto);

    ApArticle saveArticle(ArticleDto dto);
}
